/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package database;

/**
 *
 * @author Hung
 */
public class ItemInfo {

    public static int numberItem = 6;
    private static String[] itemsName = {"Thịt chó giải đen", "Karaoke", "Massage", "Nhẫn cưới", "Avatar", "Loa"};
    private static int[] itemsPrice = {150, 100, 50, 200, 100, 100};
    private static int[] itemsLuckPercent = {40, 20, 10, 0, 0, 0};
    private static int[] itemTimeLimit = {24, 24, 24, 24, 24, 24};

    public static String getItemName(int id) {
        return itemsName[id];
    }

    public static int getItemPrice(int id) {
        return itemsPrice[id];
    }

    public static int getItemLuckPercent(int id) {
        return itemsLuckPercent[id];
    }

    public static void setItemName(int id, String name) {
        itemsName[id] = name;
    }

    
    public static void setItemPrice(int id, int price) {
        itemsPrice[id] = price;
    }

    public static void setItemLuckPercent(int id, int percent) {
        itemsLuckPercent[id] = percent;
    }

    public static int getItemTimeLimit(int id) {
        return itemTimeLimit[id];
    }

    public static void setItemTimeLimit(int id, int time) {
        itemTimeLimit[id] = time;
    }

    public static void setNumberItem(int number) {
        numberItem = number;
    }
}
